#pragma once

#include <QtWidgets/QWidget>
#include "ui_TestopencvAndQimage.h"
#include <Qimage>
class TestopencvAndQimage : public QWidget
{
    Q_OBJECT

public:
    TestopencvAndQimage(QWidget *parent = nullptr);
    ~TestopencvAndQimage();
    void updateImage();


public slots:
   
    void rotateClockwise();
    void rotateCounterClockwise();
    void flipHorizontal();
    void flipVertical();


private:
    Ui::TestopencvAndQimageClass ui;

    QImage *img = nullptr;
    QPixmap pixmap;
    int angle = 0;
    bool flippedH = false;
    bool flippedV = false;




};
